<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>注册</title>
</head>
<body>
<h4>直接访问Action的execute方法</h4>
<form action="mashen/user1" method="post">
<span>帐号：</span><input type="text" name="user.name"><br>
<span>密码：</span><input type="text" name="user.password"><br>
<span>年龄：</span><input type="text" name="user.age"><br>
<input type="submit" value="提交">
</form>
<hr>
<h4>自定义访问Action的其他方法</h4>
<form action="mashen/login" method="post" enctype="multipart/form-data">
<span>帐号：</span><input type="text" name="user.name"><br>
<span>密码：</span><input type="text" name="user.password"><br>
<span>年龄：</span><input type="text" name="user.age"><br>
<span>头像：</span><input type="file" name="user.fileUrl"><br>
<input type="submit" value="提交">
</form>
</body>
</html>